#ifndef __ENCODER_H
#define __ENCODER_H

#include "ti_msp_dl_config.h"




extern volatile int16_t right_speed_run;
extern volatile int16_t left_speed_run;
extern volatile int16_t left_speed_last;
extern volatile int16_t right_speed_last;

void Encoder_Init();
void Get_speed();//编码器获取速度
int32_t Encoder_Get(uint8_t Choose);

#endif
